﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewMessage.aspx.cs" Inherits="bts_webapp.ViewMessage" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2011.2.915.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <h2>Danh sách Message</h2>
    </div>
    <div>
        <asp:ScriptManager ID="sman" runat="server" />
                <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="RadGrid1">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>

                <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1" Skin="Windows7" />
                <telerik:RadGrid Skin="Windows7" runat="server" ID="RadGrid1" AutoGenerateColumns="false" 
                    AllowPaging="true" OnNeedDataSource="RadGrid1_NeedDataSource" PageSize="20" 
                    OnItemDataBound="RadGrid1_ItemDataBound" AllowSorting="true" AllowFilteringByColumn="true" >
                    
                    <MasterTableView>
                        <Columns>
                            <telerik:GridBoundColumn DataField="File_From" HeaderText="Từ" UniqueName="FileFrom" SortExpression="FileFrom" />
                            <telerik:GridBoundColumn DataField="File_FromName" HeaderText="Tên" UniqueName="FileFromName" SortExpression="FileFromName" />
                            <telerik:GridBoundColumn DataField="File_Name" HeaderText="Tiêu đề" UniqueName="FileName" SortExpression="FileName" HtmlEncode="true" />
                            <telerik:GridBoundColumn DataField="File_Description" HeaderText="Nội dung" UniqueName="Description" SortExpression="Description" ItemStyle-Width="400px" ItemStyle-Wrap="true" HtmlEncode="true" />
                            <telerik:GridBoundColumn DataField="SentDate" HeaderText="Ngày gởi" UniqueName="SentDate" SortExpression="SentDate" />
                        </Columns>
                    </MasterTableView>
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                </telerik:RadGrid>
    </div>

</asp:Content>
